package com.zgm.ch04.applicationContext.i18n._9_5_2_1;

public class ErrorReport {

	public void evaluate(double[] values) {
		if(values.length % 2 != 0){
			throw new SourceDateInvalidException("长度必须能被2整除");
		}
		
		for(int i = 0; i < values.length; i++){
			double value = values[i];
			
			if(value < 0){
				throw new ArgumentDomainException("元素必须大于" + 0);
			}
		}
	}
}
